<style>
    .tab-content > .chart {
        padding: 10px;
    }
</style>
<div class="row">
    <!-- <div class="col-lg-3 col-xs-6">
      
        <div class="small-box bg-aqua">
            <div class="inner">
                <h3>{$today_user_count}</h3>

                <p>今日新增用户数</p>
            </div>
            <div class="icon">
                <i class="fa fa-user"></i>
            </div>
        </div>
    </div> -->
    <!-- ./col -->
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-green">
            <div class="inner">
                <h3>{$all_user_count}</h3>

                <p>累计用户数</p>
            </div>
            <div class="icon">
                <i class="fa fa-users"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-yellow">
            <div class="inner">
                <h3>{$today_income_money}</h3>

                <p>今日订单收入</p>
            </div>
            <div class="icon">
                <i class="fa fa-money"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-red">
            <div class="inner">
                <h3>{$all_income_money}</h3>
                <p>累计订单收入</p>
            </div>
            <div class="icon">
                <i class="fa fa-bank"></i>
            </div>
        </div>
    </div>
    <!-- ./col -->
    <!-- <div class="col-lg-3 col-xs-6">
        
        <div class="small-box bg-red">
            <div class="inner">
                <h3>{$salesman_commission_total|default=0}</h3>
                <p>累计业务员佣金收入</p>
            </div>
            <div class="icon">
                <i class="fa fa-bank"></i>
            </div>
        </div>
    </div> -->
    <!-- ./col -->
    <div class="col-lg-3 col-xs-6">
        <!-- small box -->
        <div class="small-box bg-red">
            <div class="inner">
                <h3>{$all_order_count|default=0}</h3>
                <p>累计订单成功量</p>
            </div>
            <div class="icon">
                <i class="fa fa-bank"></i>
            </div>
        </div>
    </div>
</div>
<!-- /.row -->

<div class="row" style="margin-bottom:5px;">
    <!-- <div id="cate_main" style="height: 300px;" ></div>-->
    <!-- Left col -->
    <section class="col-lg-14 connectedSortable">
        <!-- Custom tabs (Charts with tabs)-->
        <div class="nav-tabs-custom charts-custom">
            <!-- Tabs within a box -->
            <ul class="nav nav-tabs pull-right">
                <li class="pull-left header"><i class="fa fa-inbox"></i> 各服务的订单统计</li>
            </ul>
            <div class="tab-content no-padding">
                <!-- Morris chart - Sales -->
                <div class="chart tab-pane active" id="cate_main" style="position: relative; height: 310px;"></div>
            </div>
        </div>

        <!-- /.nav-tabs-custom -->

    </section>
</div>

<!-- Main row -->
<div class="row" style="margin-bottom:5px;">
    <!-- Left col -->
    <section class="col-lg-7 connectedSortable">
        <!-- Custom tabs (Charts with tabs)-->
        <div class="nav-tabs-custom charts-custom">
            <!-- Tabs within a box -->
            <ul class="nav nav-tabs pull-right">
                <li class="active" style="display: none" ><a href="#line-chart" data-toggle="tab">折线图</a></li>
<!--                <li><a href="#area-chart" data-toggle="tab">区域图</a></li>-->
                <li class="pull-left header"><i class="fa fa-inbox"></i> 新增会员趋势</li>
            </ul>
            <div class="tab-content no-padding">
                <!-- Morris chart - Sales -->
                <div class="chart tab-pane active" id="line-chart" style="position: relative; height: 310px;"></div>
                <div class="chart tab-pane" id="area-chart" style="position: relative; height: 300px;"></div>
            </div>
        </div>

        <!-- /.nav-tabs-custom -->

    </section>
    <!-- /.Left col -->
    <section class="col-lg-5 connectedSortable">

        <!-- Map box -->
        <div class="box box-solid bg-light-blue-gradient">
            <div class="box-header">
                <!-- tools box -->
                <div class="pull-right box-tools">
                </div>
                <!-- /. tools -->

                <i class="fa fa-map-marker"></i>

                <h3 class="box-title">
                    订单收入
                </h3>
            </div>
            <div class="box-body">
                <div id="simplebar-chart" style="height: 250px; width: 100%;"></div>
            </div>
            <!-- /.box-body-->
            <div class="box-footer no-border">
                <div class="row">
                    <div class="col-xs-12 text-center">
                        <div class="knob-label">统计最近一周订单收入</div>
                    </div>
                    <!-- ./col -->
                </div>
                <!-- /.row -->
            </div>
        </div>
        <!-- /.box -->


    </section>
    <!-- right col -->
</div>
<!-- /.row (main row) -->
<script>

    var echar_data_apply = {
        column: {:json_encode(array_keys($userlist))},
        userlist: {:json_encode(array_values($userlist))},
        orderlist: {:json_encode(array_values($orderlist))},

        serviceNames: {:json_encode(array_keys($serviceCount))},
        serviceCount: {:json_encode(array_values($serviceCount))},
    };

</script>